<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo CSS_DIR ?>/admin.css" />
<link rel="stylesheet" type="text/css" href="<?php echo CSS_DIR ?>/pagerNav.css" />
<title>工资导入结果</title>
</head>

<body>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head>
工　资　查 询</td></tr>
<tr><td class=b>
<form name="search" action="<?php echo url('adminFinancial', 'searchWages') ?>" method="POST">
	<table>
		<tr>
			<td>学号</td><td><?php echo $form['num']; ?></td>
			<td>岗位</td><td><?php echo $form['station']; ?></td>
			<td>银行卡号</td><td><?php echo $form['bankCardNum'] ?></td>
		</tr>
		<tr>
			<td>开始日期</td><td><?php echo $form['startDate'] ?></td>
			<td>结束日期</td><td><?php echo $form['finishDate'] ?></td>
			<td>按</td><td><?php echo $form['sort'] ?><?php echo $form['by'] ?></td>
		</tr>
		<tr>
			<td><input type="submit" value="查询" ></td>
		</tr>
	</table>
</form>
<?php if ( !empty($result) ) { ?>
<table width=800 align=center cellspacing=1 cellpadding=3 class=i_table>
	<tr class=head style="text-align:center">
		<td width="9%">日期</td>
		<td width="8%">学号</td>
		<td width="17%">岗位</td>
		<td width="14%">银行卡号</td>
		<td width="9%">工资</td>
		<td width="35%">备注</td>
		<td width="8%">用户资料</td>
	</tr>
	<?php foreach ($result as $wage) { ?>
	<tr class="b">
		<td><?php echo date('Y年m月', strtotime($wage['created'])) ?></td>
		<td><?php echo $wage['num'] ?></td>
		<td><?php echo $wage['station'] ?></td>
		<td><?php echo $wage['bankCardNum'] ?></td>
		<td><?php echo $wage['pay'] ?></td>
		<td><?php echo empty($wage['memo']) ? '&nbsp;' : $wage['memo'] ?></td>
		<td><a href="<?php echo url('adminUser', 'display', array('num'=>$wage['num'])) ?>">查看</a></td>
	</tr>
	<?php } ?>
</table>
<div><br /><?php echo $pagerNav ?></div>
<?php } ?>
</td></tr>
</table>
</body>
</html>